
class Utils {
  static findInArray (array, prop, value) {
    for (var index in array) {
      if (array[index][prop] === value) {
        return {index: index, element: array[index]}
      }
    }
    return {index: -1, element: null}
  }
}

export default Utils
